package com.gaohe.dcp.domain.vo;

import com.gaohe.dcp.domain.dto.ResDTO;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ResVO {
    //第一部分
    private ResDTO.FirstDTO first;

    //第二部分
    private List<Data_2> data_2;

    //第三部分
    private List<ThirdVO> data_3;

    public ResVO(ResDTO.FirstDTO first, Integer value1, String res1, Integer value2, String res2, Integer value3, String res3,
                 List<ThirdVO> data_3) {
        this.first = first;
        ArrayList<Data_2> data_2 = new ArrayList<>();
        data_2.add(new Data_2(value1,res1,value2,res2,value3,res3));
        this.data_2 = data_2;
        this.data_3 = data_3;
    }

    public ResVO(ResDTO.FirstDTO first, List<ThirdVO> data_3) {
        this.first = first;
        this.data_3 = data_3;
    }

    @Data
    @AllArgsConstructor
    public class Data_2 {
        private Integer value1;
        private String res1;
        private Integer value2;
        private String res2;
        private Integer value3;
        private String res3;
    }
}
